// 字典处理
import { defineStore } from 'pinia';

/**
 * pinia store
 * 字典数据缓存,  可以从后端数据库一次获取所有, 此处暂时用静态数据
 * 2024-12-18 13:31:49
 */
export const useEkStore = defineStore({
    id: 'eekk',  //store的ID

    state: () => ({
        patName: 'zhangsan'
    }),

    getters: {
        // 返回指定类型字典
        getEk (state) {
            return state.patName;
        }
    },

    actions: {
        setEk() {
            this.patName = 'lisi';
        }
    }
});
